package com.hk.blog.service;

import com.hk.blog.domain.RolePermission;
import com.hk.core.service.jpa.JpaBaseService;

import java.util.Set;

/**
 * @author Kevin
 * @date 2022-06-26 16:38
 */
public interface RolePermissionService extends JpaBaseService<RolePermission, Long> {

    Set<Long> findPermissionIdsByRoleId(Long roleId);

    Set<Long> findPermissionIdsByRoleIds(Set<Long> roleIds);

    Set<Long> findRoleIdsByPermissionIds(Set<Long> permissionIds);

    void updateRolePerms(Long roleId, Set<Long> permissionIds);
}
